-
Notifications
You must be signed in to change notification settings - Fork 131
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: don't report on file size of files we can infer from the main files #865
Conversation
Size Change: 0 B Total Size: 487 kB ℹ️ View Unchanged
|
.github/workflows/bundled-size.yaml
Outdated
@@ -12,3 +12,7 @@ jobs: | |||
with: | |||
build-script: "build-rollup" | |||
compression: "none" | |||
# no need to report on files that aren't the interesting ones | |||
exclude: "{./dist/es.js,./dist/module.js,./dist/array.full.js,**/*.map,**/node_modules/**}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I want one module file atleast please, very useful for PRs like these: #863
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(and keeps the module file size in check as well, not just the snippet)
# no need to report on files that aren't the interesting ones | ||
exclude: "{./dist/es.js,./dist/module.js,./dist/array.full.js,**/*.map,**/node_modules/**}" | ||
# no need to report on very small byte changes which show as 0% change | ||
minimum-change-threshold: 300 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
a secondary benefit of this reporting is ensuring all changes you're doing are bundled correctly, not just when size bloats up too much, so I'd like to not have this minimum threshold.
"I updated module types, but oh, the module size didn't change - what's going wrong?" oh, gotta export it too 🤷
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#til 👍
I've never once looked at them 🙉
We use automation to track bundle size but it reports on every file in the dist folder. We only care about some of the files.
The GitHub action supports inclusion and exclusion lists: https://github.com/preactjs/compressed-size-action#customizing-the-list-of-files
Let's